ngModel [NgModelController#$setValidity] ( type in module ng )

Description

Change the validity state, and notifies the form when the control changes validity. (i.e. it does not notify form if given validator is already marked as invalid).

This method should be called by validators - i.e. the parser or formatter functions.

Usage

NgModelController#$setValidity(validationErrorKey, isValid);

Parameters